#ifndef __BSP_LED_H
#define __BSP_LED_H

#include "hc32l13x.h"
#include "gpio.h"

typedef enum en_led
{
    LED_Send1       = 0u,  
    LED_Send2       = 1u,  
    LED_Send3  		= 2u,  
    LED_Send4       = 3u,  
    LED_Send5       = 4u,
} en_led_t;


/* 接收二极管阳极定义 */
#define OCTRL_PORT       GpioPortD
#define OCTRL_PIN        GpioPin0


///< recv_LED Octrl,用作AD 输入检测
#define LED_Q1_PORT        GpioPortA
#define LED_Q1_PIN         GpioPin4

#define LED_Q2_PORT        GpioPortA
#define LED_Q2_PIN         GpioPin5

#define LED_Q3_PORT        GpioPortA
#define LED_Q3_PIN         GpioPin6


/*********************************** 
发射二极管 阳极IO定义
************************************/
#define LEDs_Left_Port 	GpioPortA
#define LEDs_Left_Pin	GpioPin15

#define LEDs_Right_Port  GpioPortA
#define LEDs_Right_Pin 	 GpioPin12


/*********************************** 
发射二极管 阴极IO定义
************************************/
#define LEDs_D1_Port 	GpioPortB
#define LEDs_D1_Pin		GpioPin3

#define LEDs_D2_Port    GpioPortB
#define LEDs_D2_Pin 	GpioPin4

#define LEDs_D3_Port    GpioPortB
#define LEDs_D3_Pin 	GpioPin5

#define LEDs_D4_Port    GpioPortB
#define LEDs_D4_Pin 	GpioPin6

#define LEDs_D5_Port    GpioPortB
#define LEDs_D5_Pin 	GpioPin7


void BSP_leds_init(void);
	
#endif

